package com.xiaobai.netease_news.model;

import org.json.JSONObject;

/**
 * Created by Administrator on 2015/6/24 0024.
 */
public class Radio {
    private boolean hasCover;
    private int hasHead;
    private long replyCount;
    private int hasImg;
    private String digest;
    private boolean hasIcon;
    private String docid;
    private String title;
    private String TAGS;
    private int order;
    private int priority;
    private String lmodify;
    private String boardid;
    private String TAG;
    private String url_3w;
    private String template;
    private long votecount;
    private String alias;
    private String cid;
    private String url;
    private int hasAD;
    private String source;
    private String subtitle;
    private String imgsrc;
    private String ename;
    private String tname;
    private String ptime;
    public void parseJSON(JSONObject json) {
        hasCover = json.optBoolean("hasCover");
        hasHead = json.optInt("hasHead");
        replyCount = json.optLong("replyCount");
        hasImg = json.optInt("hasImg");
        digest = json.optString("digest");
        hasIcon = json.optBoolean("hasIcon");
        docid = json.optString("docid");
        title = json.optString("title");
        TAGS = json.optString("TAGS");
        order = json.optInt("order");
        priority = json.optInt("priority");
        lmodify = json.optString("lmodify");
        boardid = json.optString("boardid");
        TAG = json.optString("TAG");
        url_3w = json.optString("url_3w");
        template = json.optString("template");
        votecount = json.optLong("votecount");
        alias = json.optString("alias");
        cid = json.optString("cid");
        url = json.optString("url");
        hasAD = json.optInt("hasAD");
        source = json.optString("source");
        subtitle = json.optString("subtitle");
        imgsrc = json.optString("imgsrc");
        ename = json.optString("ename");
        tname = json.optString("tname");
        ptime = json.optString("ptime");

    }

    public boolean isHasCover() {
        return hasCover;
    }

    public int getHasHead() {
        return hasHead;
    }

    public long getReplyCount() {
        return replyCount;
    }

    public int getHasImg() {
        return hasImg;
    }

    public String getDigest() {
        return digest;
    }

    public boolean isHasIcon() {
        return hasIcon;
    }

    public String getDocid() {
        return docid;
    }

    public String getTitle() {
        return title;
    }

    public String getTAGS() {
        return TAGS;
    }

    public int getOrder() {
        return order;
    }

    public int getPriority() {
        return priority;
    }

    public String getLmodify() {
        return lmodify;
    }

    public String getBoardid() {
        return boardid;
    }

    public String getTAG() {
        return TAG;
    }

    public String getUrl_3w() {
        return url_3w;
    }

    public String getTemplate() {
        return template;
    }

    public long getVotecount() {
        return votecount;
    }

    public String getAlias() {
        return alias;
    }

    public String getCid() {
        return cid;
    }

    public String getUrl() {
        return url;
    }

    public int getHasAD() {
        return hasAD;
    }

    public String getSource() {
        return source;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public String getImgsrc() {
        return imgsrc;
    }

    public String getEname() {
        return ename;
    }

    public String getTname() {
        return tname;
    }

    public String getPtime() {
        return ptime;
    }
}
